package com.am.meeting;

import com.am.api.client.FileClient;
import com.am.api.dto.MeetingFileDto;
import org.junit.jupiter.api.Test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;


@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class uploadFile {
    @Autowired
            FileClient fileClient;
    @Test
    void set(){
        System.out.println(fileClient.test());
        List<MeetingFileDto> meetingFileDtos = new ArrayList<>();
        meetingFileDtos.add(new MeetingFileDto(1l,"1","1",null));
        Collection<Long> longs = fileClient.saveFile(meetingFileDtos);
        System.out.println(longs);
    }
}
